package com._520it.crm.service.impl;

import com._520it.crm.domain.Organization;
import com._520it.crm.mapper.OrganizationMapper;
import com._520it.crm.service.IOrganizationService;
import com._520it.crm.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrganizationServiceImpl implements IOrganizationService {
    @Autowired
    private OrganizationMapper organizationMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return organizationMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Organization record) {
        return organizationMapper.insert(record);
    }

    @Override
    public Organization selectByPrimaryKey(Long id) {
        return organizationMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Organization> selectAll() {
        return organizationMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Organization record) {
        return organizationMapper.updateByPrimaryKey(record);
    }
}
